xen.git
19 years agolinux: Split suspend_mutex into watch_mutex and transaction_mutex.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 14:26:26 +0000 (14:26 +0000)]
linux: Split suspend_mutex into watch_mutex and transaction_mutex.
This clarifies their usage and relationship with request_mutex and
response_mutex.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMore PV save/restore fixes.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 14:13:09 +0000 (14:13 +0000)]
More PV save/restore fixes.

Related changesets:
 14148:b67c253d1cdb4f502dec2
 13519:b4a8000e76db6b4b27341

These three changesets must be applied as a set!

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix 32-bit x86 compile
Tim Deegan [Wed, 28 Feb 2007 13:22:20 +0000 (13:22 +0000)]
Fix 32-bit x86 compile

19 years ago[XEN] Compat-mode dom0 always provides compat vcpu_guest_context structs.
Tim Deegan [Wed, 28 Feb 2007 13:19:16 +0000 (13:19 +0000)]
[XEN] Compat-mode dom0 always provides compat vcpu_guest_context structs.
Update arch_set_info_guest to do the right thing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Make the compat-mode l4 page table look more like a page table
Tim Deegan [Wed, 28 Feb 2007 13:17:27 +0000 (13:17 +0000)]
[XEN] Make the compat-mode l4 page table look more like a page table
and remove some special-case code in the shadows.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] No need to change the compat mode of the guest in xen.
Christian Limpach [Wed, 28 Feb 2007 10:40:52 +0000 (10:40 +0000)]
[XEN] No need to change the compat mode of the guest in xen.
The tools set the compat mode already explicitly.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoLoop on actual elfnote array size rather than depending on ELFNOTE_MAX
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:44:59 +0000 (09:44 +0000)]
Loop on actual elfnote array size rather than depending on ELFNOTE_MAX
macro.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd suspend_cancel flag to linux elf notes.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:41:02 +0000 (09:41 +0000)]
Add suspend_cancel flag to linux elf notes.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoAdd xm save -c/--checkpoint option
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:39:23 +0000 (09:39 +0000)]
Add xm save -c/--checkpoint option

xm save --checkpoint leaves the domain running after creating the
snapshot.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoLet xend choose to do hard or soft domain resumption depending on
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:39:03 +0000 (09:39 +0000)]
Let xend choose to do hard or soft domain resumption depending on
whether the domain advertises support for soft resumption in its
elfnotes.

Signed-off-by: Brendan Cully <brendan@kublai.com>
19 years agoFix off-by-one preventing the last elfnote from being read in xc.c.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:38:14 +0000 (09:38 +0000)]
Fix off-by-one preventing the last elfnote from being read in xc.c.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoAdd openssl-dev and xorg-x11-dev to README
kfraser@localhost.localdomain [Tue, 27 Feb 2007 20:27:18 +0000 (20:27 +0000)]
Add openssl-dev and xorg-x11-dev to README

Attached is a documentation patch to the top-level README file; it
just adds two notes saying that you need to have openssl-devel and
xorg-x11-devel installed to successfully complete a "make world" at
the top level.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
19 years ago[XEN] [ACM] Simplify the event channel scanning
kfraser@localhost.localdomain [Tue, 27 Feb 2007 20:22:36 +0000 (20:22 +0000)]
[XEN] [ACM] Simplify the event channel scanning

This patch simplifies the scanning of a domain's event channels
considering that an 'ECS_UNBOUND' event channel is not connected and
can be skipped.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoFix for Solaris compile/output for VBDs in xentop.
kfraser@localhost.localdomain [Tue, 27 Feb 2007 16:13:08 +0000 (16:13 +0000)]
Fix for Solaris compile/output for VBDs in xentop.
Signed-off-by: John Levon <john.levon@sun.com>
19 years agomerge
Ian Campbell [Tue, 27 Feb 2007 15:40:37 +0000 (15:40 +0000)]
merge

19 years ago[TOOLS] Add support for XEN_ELFNOTE_L1_MFN_VALID to readnotes.
Ian Campbell [Tue, 27 Feb 2007 15:39:08 +0000 (15:39 +0000)]
[TOOLS] Add support for XEN_ELFNOTE_L1_MFN_VALID to readnotes.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoAccelerate IDE PIO on HVM/IA64 [3/3]
kfraser@localhost.localdomain [Tue, 27 Feb 2007 15:34:55 +0000 (15:34 +0000)]
Accelerate IDE PIO on HVM/IA64 [3/3]

Add a bufferring mechanism for IDE PIO in a hypervisor.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
19 years agoAccelerate IDE PIO on HVM/IA64 [2/3]
kfraser@localhost.localdomain [Tue, 27 Feb 2007 15:34:24 +0000 (15:34 +0000)]
Accelerate IDE PIO on HVM/IA64 [2/3]

Add one more page to the guest for IDE PIO.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
19 years agoAccelerate IDE PIO on HVM/IA64 [1/3]
kfraser@localhost.localdomain [Tue, 27 Feb 2007 15:33:25 +0000 (15:33 +0000)]
Accelerate IDE PIO on HVM/IA64 [1/3]

Add a bufferring mechanism for IDE PIO in qemu.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
19 years agoFix save/restore (and non-live migrate) on PAE.
Steven Hand [Tue, 27 Feb 2007 14:33:07 +0000 (14:33 +0000)]
Fix save/restore (and non-live migrate) on PAE.
Plus add some more debug output to help us spot similar issues in the future.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoAdded SXP pretty-printer.
Ewan Mellor [Tue, 27 Feb 2007 13:58:40 +0000 (13:58 +0000)]
Added SXP pretty-printer.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agolinux: Don't allow partial message raeds from xenstore across
kfraser@localhost.localdomain [Tue, 27 Feb 2007 13:43:01 +0000 (13:43 +0000)]
linux: Don't allow partial message raeds from xenstore across
save/restore. This patch is an essential companion to
13519:b4a8000e76db6b4b27341.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix exception handling to cope with exceptions that do not have a string as
Ewan Mellor [Tue, 27 Feb 2007 11:19:25 +0000 (11:19 +0000)]
Fix exception handling to cope with exceptions that do not have a string as
the first argument.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[TOOLS] Make xentrace help a little more informative.
George Dunlap [Tue, 27 Feb 2007 11:06:29 +0000 (06:06 -0500)]
[TOOLS] Make xentrace help a little more informative.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years agoMerge
George Dunlap [Tue, 27 Feb 2007 11:02:32 +0000 (06:02 -0500)]
Merge

19 years ago[TOOLS] Added option to xentrace to discard records in the buffer
George Dunlap [Tue, 27 Feb 2007 11:01:35 +0000 (06:01 -0500)]
[TOOLS] Added option to xentrace to discard records in the buffer
before beginning the trace.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years agox86: Fix BUG() crash in mm.c.
kfraser@localhost.localdomain [Tue, 27 Feb 2007 11:00:36 +0000 (11:00 +0000)]
x86: Fix BUG() crash in mm.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix missing bits of the docs from cset 14020, and match that change by removing
Ewan Mellor [Tue, 27 Feb 2007 01:52:27 +0000 (01:52 +0000)]
Fix missing bits of the docs from cset 14020, and match that change by removing
the similar fields on host_metrics, PIF_metrics, and VM_guest_metrics.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplementation of host_metrics.get_all, PIF_metrics.get_all, and docs and
Ewan Mellor [Tue, 27 Feb 2007 01:05:32 +0000 (01:05 +0000)]
Implementation of host_metrics.get_all, PIF_metrics.get_all, and docs and
bindings for many of the get_all methods elsewhere that Xend already
implemented.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded some more fields to host_cpu.
Ewan Mellor [Tue, 27 Feb 2007 00:37:27 +0000 (00:37 +0000)]
Added some more fields to host_cpu.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM][SVM] Save/Restore: Remove commented out code
Tim Deegan [Mon, 26 Feb 2007 17:20:36 +0000 (17:20 +0000)]
[HVM][SVM] Save/Restore: Remove commented out code
Code not needed by SVM as the "VM_ENTRY_CONTROLS" register doesn't
exist.

Signed off: Mats Petersson (mats.petersson@amd.com)

19 years agoMissing files from previous changeset.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 17:05:10 +0000 (17:05 +0000)]
Missing files from previous changeset.
Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
19 years ago[xentrace][HVM] introduce HVM tracing to unify SVM and VMX tracing
kfraser@localhost.localdomain [Mon, 26 Feb 2007 17:04:39 +0000 (17:04 +0000)]
[xentrace][HVM] introduce HVM tracing to unify SVM and VMX tracing

* new tracing class TRC_HVM replacing TRC_VMX

* 20 new trace events to differentiate the information carried by them
** added corresponding trace points in SVM and VMX code
** updated formats file: descriptive formatting of trace event data
** completely replacing previous simple tracing in VMX

* possibility to toggle single events on and off at compile time in
  include/asm-x86/hvm/trace.h

Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
19 years agox86: Update map_pages_to_xen() to avoid arithmetic based on
kfraser@localhost.localdomain [Mon, 26 Feb 2007 16:27:35 +0000 (16:27 +0000)]
x86: Update map_pages_to_xen() to avoid arithmetic based on
uninitialised frame_table variable.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: Clean up {alloc,free}_xen_pagetable() interface to avoid use of
kfraser@localhost.localdomain [Mon, 26 Feb 2007 16:25:17 +0000 (16:25 +0000)]
x86: Clean up {alloc,free}_xen_pagetable() interface to avoid use of
frame_table variable before initialisation. This wasn't a bug, but was
confusing.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd argument check for xm network-attach command
Ewan Mellor [Mon, 26 Feb 2007 15:50:50 +0000 (15:50 +0000)]
Add argument check for xm network-attach command

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoFix xm vcpu-set command for when wrong number of VCPU is given
Ewan Mellor [Mon, 26 Feb 2007 15:41:35 +0000 (15:41 +0000)]
Fix xm vcpu-set command for when wrong number of VCPU is given

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoMove credit scheduler configuration into XendDomainInfo, so that the domain
Ewan Mellor [Mon, 26 Feb 2007 15:39:34 +0000 (15:39 +0000)]
Move credit scheduler configuration into XendDomainInfo, so that the domain
will be cleaned up correctly if the scheduler parameters are wrong.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoMerge
Tim Deegan [Mon, 26 Feb 2007 14:48:46 +0000 (14:48 +0000)]
Merge

19 years ago[TOOLS] fix sizeof() usage in xc_core
Tim Deegan [Mon, 26 Feb 2007 14:47:54 +0000 (14:47 +0000)]
[TOOLS] fix sizeof() usage in xc_core
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Fix backward compatibility in page table handling
kfraser@localhost.localdomain [Mon, 26 Feb 2007 14:09:08 +0000 (14:09 +0000)]
linux: Fix backward compatibility in page table handling

A 3.0.2 compatibility requirement slipped my attention before
submitting the original page table handling changes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] Allow log-dirty mode to be enabled on already-shadowed domains.
Tim Deegan [Mon, 26 Feb 2007 13:56:01 +0000 (13:56 +0000)]
[XEN] Allow log-dirty mode to be enabled on already-shadowed domains.
and catch a few missing mark_dirty() calls
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoRemap PCI-ISA IRQ 6 to IRQ 7. Disable LPT1 by default and remove its
kfraser@localhost.localdomain [Mon, 26 Feb 2007 11:53:35 +0000 (11:53 +0000)]
Remap PCI-ISA IRQ 6 to IRQ 7. Disable LPT1 by default and remove its
definition from the ACPI DSDT. This avoids conflict with FDC on IRQ6
(it is a bit more likely that someone will want to connect a floppy
image to a guest than it is that anyone will ever care about
parallel-port functionality).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoResolve conflict over use of name xen_elfnote.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 11:21:03 +0000 (11:21 +0000)]
Resolve conflict over use of name xen_elfnote.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Mon, 26 Feb 2007 10:23:03 +0000 (10:23 +0000)]
Merge

19 years ago[HVM] Shadow: always use mmio_space() to detect MMIO addresses
Tim Deegan [Mon, 26 Feb 2007 10:22:38 +0000 (10:22 +0000)]
[HVM] Shadow: always use mmio_space() to detect MMIO addresses
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolibxc, ia64: Added new arch_hook for registering ia64 big endian images.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 10:18:52 +0000 (10:18 +0000)]
libxc, ia64: Added new arch_hook for registering ia64 big endian images.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years agoSave elfnotes in VM sxpr under image/notes, and load them on restore.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 09:59:56 +0000 (09:59 +0000)]
Save elfnotes in VM sxpr under image/notes, and load them on restore.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoWrite Xen ELF notes into xenstore on domain build.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 09:59:33 +0000 (09:59 +0000)]
Write Xen ELF notes into xenstore on domain build.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years ago[HVM] Revert cset 14083
Tim Deegan [Mon, 26 Feb 2007 09:28:30 +0000 (09:28 +0000)]
[HVM] Revert cset 14083
which was wrong, and not very useful.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxm-test, acm: Use xvda* device name instead of sdb* device inside guest domain.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 09:13:50 +0000 (09:13 +0000)]
xm-test, acm: Use xvda* device name instead of sdb* device inside guest domain.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoRemove duplicate #includes from Linux sparese-tree file.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 09:12:55 +0000 (09:12 +0000)]
Remove duplicate #includes from Linux sparese-tree file.
From: Chuck Short <zulcss@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agofix PDPE entry in P2M table under 32bit PAE hypervisor
root@xenhog02.amd.com [Mon, 26 Feb 2007 05:58:33 +0000 (23:58 -0600)]
fix PDPE entry in P2M table under 32bit PAE hypervisor

19 years agoRemove unused network.default_{gateway,netmask}.
Ewan Mellor [Mon, 26 Feb 2007 00:07:14 +0000 (00:07 +0000)]
Remove unused network.default_{gateway,netmask}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRedefine units of VDI.virtual_size to be bytes, not sectors.
Ewan Mellor [Sun, 25 Feb 2007 23:45:39 +0000 (23:45 +0000)]
Redefine units of VDI.virtual_size to be bytes, not sectors.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded host.capabilities field.
Ewan Mellor [Sun, 25 Feb 2007 23:37:05 +0000 (23:37 +0000)]
Added host.capabilities field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReplace VM.tools_version with a richer VM_guest_metrics class.
Ewan Mellor [Sun, 25 Feb 2007 23:17:14 +0000 (23:17 +0000)]
Replace VM.tools_version with a richer VM_guest_metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded documentation and C bindings for VBD/VIF.status_detail, status_code, and
Ewan Mellor [Sun, 25 Feb 2007 22:47:29 +0000 (22:47 +0000)]
Added documentation and C bindings for VBD/VIF.status_detail, status_code, and
currently_attached fields.  Not yet implemented.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded a VM.domid field.
Ewan Mellor [Sun, 25 Feb 2007 22:31:43 +0000 (22:31 +0000)]
Added a VM.domid field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove the bindings for VM.get_VCPUs_{number,utilisation} -- these have moved
Ewan Mellor [Sun, 25 Feb 2007 22:02:12 +0000 (22:02 +0000)]
Remove the bindings for VM.get_VCPUs_{number,utilisation} -- these have moved
onto the metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix typo in host record.
Ewan Mellor [Sun, 25 Feb 2007 21:53:39 +0000 (21:53 +0000)]
Fix typo in host record.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded tab completion for methods and object references to xm shell.
Ewan Mellor [Sun, 25 Feb 2007 21:52:54 +0000 (21:52 +0000)]
Added tab completion for methods and object references to xm shell.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded host.API_version_{major,minor,vendor,vendor_implementation} fields.
Ewan Mellor [Sun, 25 Feb 2007 17:20:51 +0000 (17:20 +0000)]
Added host.API_version_{major,minor,vendor,vendor_implementation} fields.

Fix missing host.other_config from the record returned by Xend.

Improve the error diagnosis when we catch TypeError.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded VBD. and VIF.qos_supported_algorithms fields, with C bindings, Xend
Ewan Mellor [Wed, 21 Feb 2007 23:03:00 +0000 (23:03 +0000)]
Added VBD. and VIF.qos_supported_algorithms fields, with C bindings, Xend
implementation to follow.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agolibxc: Code format cleanups.
Keir Fraser [Sat, 24 Feb 2007 15:30:19 +0000 (15:30 +0000)]
libxc: Code format cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoReduce impact of saving/restoring/dumping large domains on Dom0 memory
Keir Fraser [Sat, 24 Feb 2007 14:48:17 +0000 (14:48 +0000)]
Reduce impact of saving/restoring/dumping large domains on Dom0 memory
usage by means of fadvise64() to tell the OS to discard the cache
pages used for the save/dump file.

Signed-off-by: Simon Graham <Simon.Graham@stratus.com>
19 years agodump-core: documentation on its format.
Keir Fraser [Sat, 24 Feb 2007 14:33:34 +0000 (14:33 +0000)]
dump-core: documentation on its format.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoxc_ptrace_core.c new elf format support
Keir Fraser [Sat, 24 Feb 2007 14:32:43 +0000 (14:32 +0000)]
xc_ptrace_core.c new elf format support
The old format is still supported and the old implementation is left
as is with the slight adjustment to coexist with new implementation.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoXen coredump format: ELF formatified with note section.
Keir Fraser [Sat, 24 Feb 2007 14:31:42 +0000 (14:31 +0000)]
Xen coredump format: ELF formatified with note section.
added PFN-GMFN table for non-auto translated physmap
added PFN table for auto translated physmap.
HVM domain support.
IA64 support

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Use the guest's own p2m table instead of xc_get_pfn_list(), which
cannot handle PFNs with no MFN.
Dump a zeroed page for PFNs with no MFN.
Clearly deprecate xc_get_pfn_list().
Do not include a P2M table with HVM domains.
Refuse to dump HVM until we can map its pages with PFNs.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoMove some definitions from xg_save_resotre.h to xg_private.h
Keir Fraser [Sat, 24 Feb 2007 14:19:42 +0000 (14:19 +0000)]
Move some definitions from xg_save_resotre.h to xg_private.h
which are necessary for the new dump core implementation.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agox86 hvm domain builder, restore: set shared_info.arch.max_pfn for
Keir Fraser [Sat, 24 Feb 2007 14:19:05 +0000 (14:19 +0000)]
x86 hvm domain builder, restore: set shared_info.arch.max_pfn for
dump-core to know the area to dump

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoSupport new xm command: xm trigger <Domain> <nmi|reset|init> [<VCPU>]
Keir Fraser [Sat, 24 Feb 2007 14:10:27 +0000 (14:10 +0000)]
Support new xm command: xm trigger <Domain> <nmi|reset|init> [<VCPU>]
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
19 years agoxen memory allocator: Allow per-domain bitwidth restrictions.
Keir Fraser [Sat, 24 Feb 2007 13:57:34 +0000 (13:57 +0000)]
xen memory allocator: Allow per-domain bitwidth restrictions.
Original patch by Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen memory allocator: Dynamically allocate per-numa-node metadata.
Keir Fraser [Sat, 24 Feb 2007 12:19:22 +0000 (12:19 +0000)]
xen memory allocator: Dynamically allocate per-numa-node metadata.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TAPDISK] honor read-only attributes when creating tap-based VBDs
Jake Wires [Sat, 24 Feb 2007 01:26:07 +0000 (17:26 -0800)]
[TAPDISK] honor read-only attributes when creating tap-based VBDs
Signed-off-by: Jake Wires <jwires@xensource.com>
19 years ago[TAPDISK] handle error case when opening VDIs
Jake Wires [Fri, 23 Feb 2007 17:40:32 +0000 (09:40 -0800)]
[TAPDISK] handle error case when opening VDIs

19 years agoxen memory alloctor: remove bit width restrictions
kfraser@localhost.localdomain [Fri, 23 Feb 2007 17:02:58 +0000 (17:02 +0000)]
xen memory alloctor: remove bit width restrictions

Hide the (default or user specified) DMA width from anything outside
the heap allocator. I/O-capable guests can now request any width for
the memory they want exchanged/added.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxen memory allocator: per-bit-width heap zones
kfraser@localhost.localdomain [Fri, 23 Feb 2007 17:01:38 +0000 (17:01 +0000)]
xen memory allocator: per-bit-width heap zones

Replace the 3-zone scheme of the heap allocator with one with one
where zones are distinguished by their bit widths.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agomerge
Ian Campbell [Fri, 23 Feb 2007 16:57:34 +0000 (16:57 +0000)]
merge

19 years ago[LINUX] Purge include <linux/config.h>. It has been obsolete for some time now.
Ian Campbell [Fri, 23 Feb 2007 16:56:45 +0000 (16:56 +0000)]
[LINUX] Purge include <linux/config.h>. It has been obsolete for some time now.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[PV-on-HVM] Fix gnttab_map to not run off the bottom of the gnttab space.
Ian Campbell [Fri, 23 Feb 2007 16:56:42 +0000 (16:56 +0000)]
[PV-on-HVM] Fix gnttab_map to not run off the bottom of the gnttab space.

Cleanup a few warnings: reached end of void function and unused variables.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoxen memory allocator: hide generic allocator routines
kfraser@localhost.localdomain [Fri, 23 Feb 2007 16:55:56 +0000 (16:55 +0000)]
xen memory allocator: hide generic allocator routines

This patch doesn't introduce functional changes, but simply moves code
around to make the unused (outside of the page allocator) heap alloc
functions taking an explicit zone parameter static without having to
forward-prototype them in their source file.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxentrace: Add a relative TSC field (kept track per CPU) to xentrace_format.
kfraser@localhost.localdomain [Fri, 23 Feb 2007 16:36:55 +0000 (16:36 +0000)]
xentrace: Add a relative TSC field (kept track per CPU) to xentrace_format.

Additionally a default line is added (key 0x00000000) which is used
when no specific entry in the format file is found.

Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
19 years agolinux, tpm: Fix argument to grant table operation
kfraser@localhost.localdomain [Fri, 23 Feb 2007 16:24:07 +0000 (16:24 +0000)]
linux, tpm: Fix argument to grant table operation
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agohvm: Fix save/restore to handle missing pages.
kfraser@localhost.localdomain [Fri, 23 Feb 2007 16:17:00 +0000 (16:17 +0000)]
hvm: Fix save/restore to handle missing pages.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvm: unset_mm_mapping() for vga acceleration region should recalculate
kfraser@localhost.localdomain [Fri, 23 Feb 2007 16:16:36 +0000 (16:16 +0000)]
hvm: unset_mm_mapping() for vga acceleration region should recalculate
maxmem setting before freeing memory!
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Only treat gfns in known MMIO regions as MMIO
Tim Deegan [Fri, 23 Feb 2007 14:44:07 +0000 (14:44 +0000)]
[HVM] Only treat gfns in known MMIO regions as MMIO
instead of assuming that all non-RAM addresses are MMIO
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxen: Fix dumb boot allocator breakage that prevents loop termination
kfraser@localhost.localdomain [Fri, 23 Feb 2007 14:36:33 +0000 (14:36 +0000)]
xen: Fix dumb boot allocator breakage that prevents loop termination
in some cases. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] [TOOLS] 32on64 compat save/restore: unadjust L3E flags at save time
Emmanuel Ackaouy [Fri, 23 Feb 2007 12:58:20 +0000 (12:58 +0000)]
[XEN] [TOOLS] 32on64 compat save/restore: unadjust L3E flags at save time
Get rid of USER|RW|ACCESSED L3 PTE flags which may be present
in a PAE guest when running on a 64bit hypervisor at save time.
This prevents the restore operation from getting confused by
these flags.
Reset disallowed L3E flags to match PAE case.

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years agohvm: Clean up initialisation of hvm_funcs.
kfraser@localhost.localdomain [Fri, 23 Feb 2007 11:32:25 +0000 (11:32 +0000)]
hvm: Clean up initialisation of hvm_funcs.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoImplement VBD and VIF handling on Solaris for libxenstat.
kfraser@localhost.localdomain [Fri, 23 Feb 2007 10:47:55 +0000 (10:47 +0000)]
Implement VBD and VIF handling on Solaris for libxenstat.

Also, fix up a confusion with ERR that was breaking xentop.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agolinux: Fix current_vcpu_info for UP case
kfraser@localhost.localdomain [Fri, 23 Feb 2007 10:43:00 +0000 (10:43 +0000)]
linux: Fix current_vcpu_info for UP case

Under !CONFIG_SMP, smp.h is not always included and hence
smp_processor_id() not always visible.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoMerge with xen-ia64-unstable.hg.
kfraser@localhost.localdomain [Fri, 23 Feb 2007 10:38:33 +0000 (10:38 +0000)]
Merge with xen-ia64-unstable.hg.

19 years agohvm: Rename injection_pending() to event_injection_faulted().
kfraser@localhost.localdomain [Fri, 23 Feb 2007 10:35:16 +0000 (10:35 +0000)]
hvm: Rename injection_pending() to event_injection_faulted().
Fix the VMX and SVM handlers to reflect the new semantics (which is
what is actually required by the one caller, in shadow fault path).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TAPDISK] minor changes to tapdisk and plugins
Jake Wires [Fri, 23 Feb 2007 05:32:17 +0000 (21:32 -0800)]
[TAPDISK] minor changes to tapdisk and plugins
* open all parent images read-only
* expose parent image names to tapdisk (needed for locking api)
Signed-off-by: Jake Wires <jwires@xensource.com>
19 years agox86/64: Fix a user of alloc_boot_pages() who should use
kfraser@localhost.localdomain [Thu, 22 Feb 2007 22:27:40 +0000 (22:27 +0000)]
x86/64: Fix a user of alloc_boot_pages() who should use
alloc_boot_low_pages() instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Thu, 22 Feb 2007 17:15:29 +0000 (10:15 -0700)]
merge with xen-unstable.hg

19 years ago[IA64] First step to support big-endian PV domUs
awilliam@xenbuild2.aw [Thu, 22 Feb 2007 16:42:13 +0000 (09:42 -0700)]
[IA64] First step to support big-endian PV domUs

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years agoalloc_boot_pages() allocates downwards from high memory.
kfraser@localhost.localdomain [Thu, 22 Feb 2007 15:26:21 +0000 (15:26 +0000)]
alloc_boot_pages() allocates downwards from high memory.
This conserves low memory.

Provide new function alloc_boot_low_pages() for those callers who
actually require lowmem pages (e.g., below 4GB).

Based on a patch by Chris Lalancette <clalance@redhat.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: Detect shadow-emulate write to stack from inside the write
kfraser@localhost.localdomain [Thu, 22 Feb 2007 15:22:16 +0000 (15:22 +0000)]
x86: Detect shadow-emulate write to stack from inside the write
handler, where we can quite conveniently check whether the access
segment is SS. This will only give a false positive for non-stack
writes that override the destination segment to SS, which it is
probably safe to assume will never happen when the destination is a
legitimate page table!

For now, instead of bailing and unshadowing just increment a perfctr
and we'll see if that increases fast under any reasonable workload.

Signed-off-by: Keir Fraser <keir@xensource.com>